//
//  RenHouseCarySubCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/19.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "RenHouseCarySubCell.h"

@interface RenHouseCarySubCell ()

@property (weak, nonatomic) IBOutlet UIImageView *topImageView;

@property (weak, nonatomic) IBOutlet UILabel *bottomLabel;

@end

@implementation RenHouseCarySubCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    
    self.bottomLabel.font = MYFONT(13);
    // Initialization code
}

- (void)setIndex:(NSIndexPath *)index{
    _index = index;
    
    if (_index.item == 0) {
        self.bottomLabel.text = @"整租";
        self.topImageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"rentHouse00%ld",index.item]];
        
    } else if(_index.item == 1){
        self.bottomLabel.text = @"短租";
        self.topImageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"rentHouse00%ld",index.item]];

    }else if(_index.item == 2){
        self.bottomLabel.text = @"合租";
        self.topImageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"rentHouse00%ld",index.item]];

    }else{
        
        self.bottomLabel.text = @"发布出租";
        self.topImageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"rentHouse00%ld",index.item]];

    }
    
    
    
    
}

@end
